﻿namespace System
{
    public static class SystemObjectExtensions
    {
        /// <summary>
        /// 转换为二进制数据
        /// </summary>
        /// <param name="structObj"></param>
        /// <returns></returns>
        public static byte[] ToBytes(this object structObj)
        {
            return BytesTools.StructToBytes(structObj);
        }

    }
}
